Fix r57997 and r58039 for realz this time
authorChad Horohoe <demon@users.mediawiki.org>
Thu, 22 Oct 2009 22:07:05 +0000 (22:07 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Thu, 22 Oct 2009 22:07:05 +0000 (22:07 +0000)
includes/parser/Parser.php

index e398a85..7420b9c 100644 (file)
@@ -3281,16 +3281,16 @@ class Parser
                                        $content = strtr($content, array('-{' => '-&#123;', '}-' => '&#125;-'));
                                        $output = Xml::escapeTagsOnly( $content );
                                        break;
+                               case 'gallery':
+                                       $output = $this->renderImageGallery( $content, $attributes );
+                                       break;
                                case 'math':
                                        if ( $this->mOptions->getUseTeX() ) {
                                                $output = $wgContLang->armourMath(
                                                        MathRenderer::renderMath( $content, $attributes ) );
                                                        break;
                                        }
-                                       /* else let a tag hook handle it (bug 21222) */ 
-                               case 'gallery':
-                                       $output = $this->renderImageGallery( $content, $attributes );
-                                       break;
+                                       /* else let a tag hook handle it (bug 21222) */
                                default:
                                        if( isset( $this->mTagHooks[$name] ) ) {
                                                # Workaround for PHP bug 35229 and similar